//
//  JOView.m
//  UI复习-scrollview
//
//  Created by song on 15/8/25.
//  Copyright (c) 2015年 song. All rights reserved.
//

#import "JOView.h"

@implementation JOView

-(void)drawRect:(CGRect)rect
{
    CGContextRef ctx =UIGraphicsGetCurrentContext();
    
    CGContextMoveToPoint(ctx, 40, 20);
    CGContextAddLineToPoint(ctx, 20, 100);
    
    [[UIColor redColor] set];
    
    CGContextStrokePath(ctx);
}

@end
